with open('a.txt','r',encoding='utf-8') as file:
    for f in file.readlines():
        print(f,end='')
#使用了with之后就不用进行关闭处理